package com.cdd.framework.oauth2.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum LoginType {

	SYS,
	APP,
	CAS,
	MNP,
	API;

	public static LoginType getTarget(String name){
		for (LoginType value : LoginType.values()) {
			if (value.name().equals(name)) {
				return value;
			}
		}
		return null;
	}

}
